package cn.wolfcode.p2p.business.mapper;

import cn.wolfcode.p2p.business.domain.PaymentSchedule;
import cn.wolfcode.p2p.business.domain.PaymentScheduleDetail;
import cn.wolfcode.p2p.business.query.PaymentScheduleDetailQueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PaymentScheduleMapper {

    int insert(PaymentSchedule record);

    PaymentSchedule selectByPrimaryKey(Long id);

    int updateByPrimaryKey(PaymentSchedule record);

    List selectForPage(PaymentScheduleDetailQueryObject qo);

    int getCountByStateAndBidRequest(@Param("bidRequestId") Long bidRequestId, @Param("state") int state);

    List<PaymentSchedule> getByOverDueState(int state);
}